/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package io.renren.service;

import io.renren.common.service.BaseService;
import io.renren.entity.UserEntity;
import io.renren.dto.LoginDTO;

import java.util.Map;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface UserService extends BaseService<UserEntity> {

    UserEntity getByMobile(String mobile);

    UserEntity getUserByUserId(Long userId);

    /**
     * 用户登录
     * @return 返回登录信息
     */
    Map<String, Object> wxLogin(String code);

    Map<String, Object> aliLogin(String code);
}
